package com.example.springbootlearning.service.impl;

import com.example.springbootlearning.mapper.UserMapper;
import com.example.springbootlearning.service.UserService;
import com.example.springbootlearning.vo.User;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * ClassName: UserServiceImpl
 * Package: com.example.springbootlearning.service.impl
 * Package: com.example.springbootlearning.service.impl
 * Desription:
 *
 * @Author: happen
 * @CreateTime: 2024/6/17 16:49
 * @Version: V1.0
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public User getUserById(int id){
      return  userMapper.selectByPrimaryKey(id);
    }
}
